package zhenti;

/**
 * Created by Yang on 2017/6/21.
 */


import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {//注意while处理多个case
            String[] s1 = in.nextLine().split(" ");
            int n = Integer.parseInt(s1[0]);
            int m = Integer.parseInt(s1[1]);
            int x = Integer.parseInt(s1[2]);
            int y = Integer.parseInt(s1[3]);
            int t = Integer.parseInt(s1[4]);

            double ccp = 0.00;
            double ssp = 0.00;
            for (int i = 1; i <= n; i++) {
                String[] s = in.nextLine().split(" ");
                for (int j = 1; j <= m; j++) {
                    double p = 1 - Double.parseDouble(s[j - 1]);
//double p = 1-in.nextDouble();//钓不到鱼的概率
                    if (i == x && j == y)
                        ccp = p;
                    ssp += p;
                }
            }
            ssp /= (n * m);//期望
            if (ccp < ssp) {
                System.out.println("cc");
                System.out.printf("%.2f\n", 1 - Math.pow(ccp, t));
            } else if (ccp > ssp) {
                System.out.println("ss");
                System.out.printf("%.2f\n", 1 - Math.pow(ssp, t));
            } else {
                System.out.println("equal");
                System.out.printf("%.2f\n", 1 - Math.pow(ccp, t));
            }
        }
    }
}
